package bma.common.netty.webserver.common;

import java.util.Set;

import bma.common.netty.webserver.Session;

public class SessionNew implements Session {

	Session inner;

	public SessionNew(Session inner) {
		super();
		this.inner = inner;
	}

	public long getCreationTime() {
		return inner.getCreationTime();
	}

	public String getId() {
		return inner.getId();
	}

	public long getLastAccessedTime() {
		return inner.getLastAccessedTime();
	}

	public void setMaxInactiveInterval(int interval) {
		inner.setMaxInactiveInterval(interval);
	}

	public int getMaxInactiveInterval() {
		return inner.getMaxInactiveInterval();
	}

	public Object getAttribute(String name) {
		return inner.getAttribute(name);
	}

	public Set<String> getAttributeNames() {
		return inner.getAttributeNames();
	}

	public void setAttribute(String name, Object value) {
		inner.setAttribute(name, value);
	}

	public void removeAttribute(String name) {
		inner.removeAttribute(name);
	}

	public void invalidate() {
		inner.invalidate();
	}

	public boolean isNew() {
		return true;
	}	
	
}
